<?php

$title="Edit Album";

$this->headTitle($title);

if (isset($message))
{
	echo $message;
}
else
{
?>
<div class="panel panel-primary">
	<div class="panel-heading text-center">
		<?php echo $this->escapeHtml($title);?>
	</div>
	<div class="panel-body">
	<?php
		$form = $this->form;
		$form->setAttribute('action', $this->url('album', array('action' => 'edit')));
		$form->prepare();
		echo $this->form()->openTag($form);

		echo $this->formHidden($form->get('id'));
	?>
	<div class="form-group">	
		<?php	echo $this->formRow($form->get('title')); ?>
	</div>
	<div class="form-group">
		<?php echo $this->formRow($form->get('artist')); ?>
	</div>
	<div class="form-group">
		<?php echo $this->formSubmit($form->get('submit')); ?>
	</div>
	<?php echo $this->form()->closeTag(); ?>
	</div>
</div>
<?php
}
?>
<br />
<button onclick="window.history.back();" class="btn btn-default">Go back</button>